/*

This code is copyrighted. You may use it, modify it or whatever,
as long as credit is given to the original author. It may be
included in executables but not distributed in source.

This code below is an example of how to use my custom getopt function.
What the getopt function does is simply allow the programmer
to easilly write command line apps where switches are specified,
eg appname.exe -t blah -b whatever
The args proceeding the switches would be pointed to in optarg
and if a switch occurs with no argument then optarg is set to 
NULL. When NULL is returned it signifies a switch unsupported
has been included. It is up to the coder if he wants to ignore
it or whatever. But generally it would be used to indicate 
incorrect use of a program or switches not supported.

This code should work on any platform. The main motive behind
writing it especially when one already exists in posix is that
i had difficulty using the posix based one while doing a project
in C++. Mine was written from scratch and has certain benefits.
It is allot more compact and probably faster also and
supports most if not all of the posix ones features.

C:\Documents and Settings\Hi_T3Ch_AsS4sSiN\Desktop\Debug>getopt -b 
dsa -S yeeha

b=dsa
S=yeeha
 
---------------------------------------

Author: Hi_Tech_Assassin
Email : Hi_tech_assassin@hackermail.com

*/

#ifndef GETOPT_H
#define GETOPT_H
#include <stdio.h>
#include <string.h>

char *optarg;
int getopt (unsigned int, char *const *, const char *);

#endif
